<h1>Dodaj - Pakiet</h1>

<form action="{url Package=Edit id=$obj->getId()}" method="post" enctype="multipart/form-data">
	<input type="hidden" id="AddCategory" name="AddCategory" value="1" />
	<div class="mainOptions">
		
		<h2 class="slidingTab"><a class="colapse" href="#">Ustawienia główne</a></h2>
		<table cellspacing="0" cellpadding="0" border="0" width="100%" class="commonTable">
			<tr>
				<th><strong>Nazwa:</strong></th>
				<td>
					<input type="text" value="{$obj->getName()}" id="name" name="name"/>
					{if isset($error.name)}<p class="validate">{$error.name}</p>{/if}
				</td>
			</tr>
			<tr>
				<th><strong>Okres (dni):</strong></th>
				<td>
					<input type="text" value="{$obj->getDays()}" id="days" name="days"/>
					{if isset($error.days)}<p class="validate">{$error.days}</p>{/if}
				</td>
			</tr>
			<tr>
				<th><strong>Cena:</strong></th>
				<td>
					<input type="text" value="{$obj->getPrice()}" id="price" name="price"/>
					{if isset($error.price)}<p class="validate">{$error.price}</p>{/if}
				</td>
			</tr>
			<tr>
				<th><strong>Aktywny:</strong></th>
				<td>
					<input type="hidden" name="active" value="0" >
					<input type="checkbox" value="1" {if $obj->getActive() eq 1}checked="checked"{/if} id="active" name="active"/>
					{if isset($error.active)}<p class="validate">{$error.active}</p>{/if}
				</td>
			</tr>				
		</table>
		
	</div>
	<p align="right"><input class="cancel" type="button" value="Anuluj" onclick="document.location.href='{url Category='Index'}'" /><input type="submit" value="Zapisz" /></p>
	
</form>
